﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace System.Windows.Media.DirectShow.Filters
{
    public class FileWriter : BaseFilter, IFileSinkFilter
    {

        private FileWriterInputPin inputPin;

        public FileWriter()
        {
            this.Pins.Add(inputPin = new FileWriterInputPin(this));
        }

        public override string Name
        {
            get { return "File writer"; }
        }

        #region IFileSinkFilter Members

        public System.IO.Stream FileStream
        {
            get
            {
                return inputPin.FileStream;
            }
            set
            {
                inputPin.FileStream = value;
            }
        }

        #endregion
    }
}
